package com.demo.principle.singleResponsibility;

public class SingleResponsibility1 {

    public static void main(String[] args) {
        vehicle vehicle = new vehicle();
        vehicle.run("Bicycle");
        vehicle.run("Airplane");
        vehicle.run("Car");
    }

}

// 交通工具
class vehicle {
    public void run(String vehicle) {
        System.out.println(vehicle + " RUNNING");
    }
}
